import Login from '../../views/login/index.vue';
import BasicLayout from '../../layouts/BasicLayout.vue';

export default[
		{
        path: '/',
        redirect: '/workSpace'
    },
		{
			path: '/login',
			component: Login,
			meta: { name: '登录页面' },
		},
		{
			path: '/workspace',
			redirect: '/workspace/workbench',
			component: BasicLayout,
			meta: {name: '工作空间'},
			children: [
				{
					path: '/workspace/workbench',
					name: 'Workbench',
					component: () => import('../../views/login/index.vue'),
					meta: { name: '工作台', requireAuth: true, affix: true, closable: false },
				},
				{
					path: '/workspace/console',
					component: () => import('../../views/login/index.vue'),
					meta: { name: '控制台', requireAuth: true },
				},
				{
					path: '/workspace/analysis',
					component: () => import('../../views/login/index.vue'),
					meta: { name: '分析页', requireAuth: true },
				},
				{
					path: '/workspace/monitor',
					component: () => import('../../views/login/index.vue'),
					meta: { name: '监控页', requireAuth: true },
				}
			]
		},
		{
			path: '/system',
			component: BasicLayout,
			meta: {name: '系统管理'},
			children: [
				{
					path: '/system/user',
					component: () => import('../../views/system/user/index.vue'),
					meta: { name: '用户管理', requireAuth: true },
				},
				{
					path: '/system/menu',
					component: () => import('../../views/system/menu/index.vue'),
					meta: { name: '菜单管理', requireAuth: true },
				},
			]
		}
]